package com.dk.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.dk.mybatisplus.enums.SexEnum;
import lombok.Data;

@Data
//@TableName(value = "t_user")
public class User {
    //@TableId(value = "id",type = IdType.AUTO)//对应数据库列名为id  IdType.AUTO 设置主键ID自增
    private Long id;
    @TableField(value = "age")
    private Integer age;
    private String email;
    private String name;
    @TableLogic(value = "0") //逻辑删除  删除时只是更新字段isDeleted 值为1   默认查询时会添加条件 isDeleted = 0
    private String isDeleted;


    private SexEnum sex;
}
